package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.SensorRtMessageBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class RealTimeFragment1Adapter extends BGARecyclerViewAdapter<SensorRtMessageBean.RowsDTO> {

    public RealTimeFragment1Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_real_time_child1_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, SensorRtMessageBean.RowsDTO model) {
        helper.setText(R.id.sensorId, model.getSensorId())
                .setText(R.id.SensorTypeName, model.getSensorTypeName())
                .setText(R.id.MinValue, model.getMinValue())
                .setText(R.id.MaxValue, model.getMaxValue())
                .setText(R.id.MeanValue, model.getMeanValue())
                .setText(R.id.SensorStyle, model.getSensorStyle())
                .setText(R.id.TheTime, model.getTheTime())
        ;
    }
}
